package com.yami.shop.user.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.user.common.model.UserGasLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGasLogMapper  extends BaseMapper<UserGasLog> {


    List<UserGasLog> selectByMonth(@Param("year") String year, @Param("month") String month, @Param("userId") String userId);

    /**
     * 获取用户最新的购买gas记录信息
     *
     * @param userId 用户id
     * @return 等级记录信息
     */
    UserGasLog getGasPayInfoByUserId(@Param("userId") String userId);
}
